package com.tedu.response.controller;

import com.tedu.response.common.pojo.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/10/10
 */
@RestController
public class ArithmeticController {

    @RequestMapping("/doCompute/{n1}/{n2}")
    public ResponseResult compute(@PathVariable Integer n1, @PathVariable Integer n2){
        return new ResponseResult(0,"成功",n1/n2);
    }
}
